HOME = ../..

include $(HOME)/Defines.mk

LIBS += -L$(HOME)/$(LIB_DIR) -l$(PHOENIX)

SH_OBJS := shortest2.o

PROGS := shortest1 shortest2

.PHONY: default all clean

default: all

all: $(PROGS)

shortest1: 
	g++ shortest.cpp -o shortest1

shortest2: $(SH_OBJS) $(LIB_DEP)
	$(CC) $(CFLAGS) -o shortest2 $(SH_OBJS) $(LIBS)

shortest2.o: shortest.c
	$(CC) $(CFLAGS) -c shortest.c -o shortest2.o -I$(HOME)/$(INC_DIR)

clean:
	rm -f $(PROGS) $(SH_OBJS)